package com.tenbent.product.center.insures.dto.search;

import com.tenbent.product.base.dto.search.BaseSearchPageDto;
import com.tenbent.product.base.query.page.Pageable;
import com.tenbent.product.center.insures.bo.SkuInfo;

/**
 * sku查询DTO
 *
 * @author Randy
 *
 *         Created by ThinkPad on 2017/8/29.
 */
public class SkuInfoSearchPageDto extends BaseSearchPageDto {

	/** 产品ID **/
	private Integer productId;

	/** 类型代码 **/
	private String typeCode;

	/** 类型文本 **/
	private String typeText;

	/** 值代码 **/
	private String valueCode;

	/** 值文本 **/
	private String valueText;

	@Override
	public Pageable transToPageable() {
		SkuInfo skuInfo = new SkuInfo();
		skuInfo.setProductId(this.getProductId());
		skuInfo.setValueCode(this.getValueCode());
		skuInfo.setValueText(this.getValueText());
		skuInfo.setTypeCode(this.getTypeCode());
		skuInfo.setTypeText(this.getTypeText());
		Pageable pageable = new Pageable(this.getPageNum(), this.getPageSize());
		pageable.setParamBizObject(skuInfo);
		return pageable;
	}

	public Integer getProductId() {
		return productId;
	}

	public void setProductId(Integer productId) {
		this.productId = productId;
	}

	public String getTypeCode() {
		return typeCode;
	}

	public void setTypeCode(String typeCode) {
		this.typeCode = typeCode;
	}

	public String getTypeText() {
		return typeText;
	}

	public void setTypeText(String typeText) {
		this.typeText = typeText;
	}

	public String getValueCode() {
		return valueCode;
	}

	public void setValueCode(String valueCode) {
		this.valueCode = valueCode;
	}

	public String getValueText() {
		return valueText;
	}

	public void setValueText(String valueText) {
		this.valueText = valueText;
	}
}
